const http = uni.$u.http

//微信用户收货地址-添加
export const qxWxUserDeliveryAddressAdd = (params) => http.post('/chihiro/qxWxUserDeliveryAddress/add', params);

//微信用户收货地址-编辑
export const qxWxUserDeliveryAddressEdit = (params) => http.post('/chihiro/qxWxUserDeliveryAddress/edit', params);

// 微信用户收货地址-分页列表查询
export const qxWxUserDeliveryAddressList = (params) => http.get('/chihiro/qxWxUserDeliveryAddress/list', { params });

// 微信用户收货地址-查询用户默认收货地址
export const getWxUserDefaultAddress = (params) => http.get('/chihiro/qxWxUserDeliveryAddress/getWxUserDefaultAddress', { params });

// 微信用户收货地址-通过id查询
export const getWxUserDefaultAddressQueryById = (params) => http.get('/chihiro/qxWxUserDeliveryAddress/queryById', { params });

// 微信用户收货地址-通过id删除
export const qxWxUserDeliveryAddressDel = (params) => http.delete('/chihiro/qxWxUserDeliveryAddress/delete', params, { header: { 'content-type': 'application/x-www-form-urlencoded' } });

// 商品管理-小程序分页列表查询
export const xcxList = (params) => http.get('/chihiro/qxGoodsManage/xcxList', { params });

// 商品分类管理-分页列表查询
export const qxGoodsCategoryList = (params) => http.get('/chihiro/qxGoodsCategory/xcxList', { params });

// 商品管理-通过id查询
export const qxGoodsManageQueryById = (params) => http.get('/chihiro/qxGoodsManage/queryById', { params });

// 商品评价-查询商品评价种类个数
export const qxGoodsEvaluateList = (params) => http.get('/chihiro/qxGoodsEvaluate/xcxList', { params });

// 商品评价-分页列表查询
export const queryEvaluateLevelNum = (params) => http.get('/chihiro/qxGoodsEvaluate/queryEvaluateLevelNum', { params });

// 查询运费
export const queryFreightByGoodsIdALocationCode = (params) => http.get('/chihiro/qxFreightTemplateManage/queryFreightByGoodsIdALocationCode', { params });

// 创建订单
export const qxGoodsOrderAdd = (params) => http.post('/chihiro/qxGoodsOrder/add', params);

// 订单管理-通过id查询
export const qxGoodsOrderQueryById = (params) => http.get('/chihiro/qxGoodsOrder/queryById', { params });

// 订单管理-分页列表查询
export const qxGoodsOrderList = (params) => http.get('/chihiro/qxGoodsOrder/list', { params });

// 小程序订单表头
export const orderHeader = (params) => http.get('/chihiro/qxGoodsOrder/orderHeader', { params });

// 删除订单
export const qxGoodsOrderDelete = (params) => http.post('/chihiro/qxGoodsOrder/delete', params, { header: { 'content-type': 'application/x-www-form-urlencoded' } });

// 小程序调起支付
export const requestPayment = (params) => http.post('/chihiro/wxPay/requestPayment', params);

// 取消订单
export const cancelOrder = (params) => http.post('/chihiro/qxGoodsOrder/cancelOrder', params);

// 确认收货
export const confirmReceipt = (params) => http.post('/chihiro/qxGoodsOrder/confirmReceipt', params);

// 查询订单物流信息
export const getBusinessOrderHandle = (params) => http.get('/chihiro/logistics/getBusinessOrderHandle', { params });

// 修改地址
export const editAddress = (params) => http.post('/chihiro/qxGoodsOrder/editAddress', params);

// 退款售后-提交
export const qxGoodsOrderReturnAdd = (params) => http.post('/chihiro/qxGoodsOrderReturn/add', params);

// 退款售后-编辑
export const qxGoodsOrderReturnEdit = (params) => http.post('/chihiro/qxGoodsOrderReturn/edit', params);

// 退款售后-寄回
export const uploadOrderNumber = (params) => http.post('/chihiro/qxGoodsOrderReturn/uploadOrderNumber', params);

// 退款退货-审批
export const refundApproval = (params) => http.post('/chihiro/qxGoodsOrderReturn/refundApproval', params);

// 退款售后-再次提交
export const resubmit = (params) => http.post('/chihiro/qxGoodsOrderReturn/resubmit', params);

// 撤销申请
export const revokeApplication = (params) => http.post('/chihiro/qxGoodsOrderReturn/revokeApplication', params);

// 退款售后-通过id查询
export const qxGoodsOrderReturnQueryById = (params) => http.get('/chihiro/qxGoodsOrderReturn/queryById', { params });

// 查询默认地址
export const queryDefaultAddress = (params) => http.get('/chihiro/qxReturnAddress/queryDefaultAddress', { params });

// 商品评价-添加
export const qxGoodsEvaluateAdd = (params) => http.post('/chihiro/qxGoodsEvaluate/add', params);

// 商品评价-通过id查询
export const qxGoodsEvaluateQueryById = (params) => http.get('/chihiro/qxGoodsEvaluate/queryById', { params });

// 商品评价-通过id查询
export const queryByOrderId = (params) => http.get('/chihiro/qxGoodsEvaluate/queryByOrderId', { params });